<html xmlns:bizsolo="http://www.savvion.com/sbm/BizSolo"
	xmlns:sbm="http://www.savvion.com/sbm"
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:xalan="http://xml.apache.org/xalan"
	xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
	xmlns:sfe="http://www.savvion.com/sbm/sfe"
	xmlns:c="http://java.sun.com/jstl/core">
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">

<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page
	import="com.savvion.BizSolo.Server.*,com.savvion.BizSolo.beans.*,java.util.Vector"%>
<%@ page errorPage="/BizSolo/common/jsp/error.jsp"%>
<%@ taglib uri="/BizSolo/common/tlds/bizsolo.tld" prefix="bizsolo"%>
<%@ taglib uri="/bpmportal/tld/bpmportal.tld" prefix="sbm"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="sfe" uri="http://jmaki/v1.0/jsp"%>
<jsp:useBean id="bizManage"
	class="com.savvion.sbm.bizmanage.api.BizManageBean" scope="session"></jsp:useBean>
<jsp:useBean id="bean" class="com.savvion.BizSolo.beans.Bean"
	scope="session"></jsp:useBean>
<jsp:useBean id="factoryBean"
	class="com.savvion.BizSolo.beans.EPFactoryBean" scope="session"></jsp:useBean>
<jsp:useBean id="bizSite"
	class="com.savvion.sbm.bpmportal.bizsite.api.BizSiteBean"
	scope="session"></jsp:useBean>
<%!String _PageName = "GradeAssignment";%>
<%!String __webAppName = "PerformAssignment";%>
<%
	pageContext.setAttribute("contextPath", request.getContextPath()
			+ "/");
%>
<bizsolo:if
	test='<%=_PageName.equals(request.getParameter("_PageName")) %>'>
	<bizsolo:setDS
		name="assignmentID,assignmentDueDate,Assignment,submittedDate,classID,studentID,attempts,accepted,grade,teacherComments,completedAssignment"></bizsolo:setDS>
	<bizsolo:choose>
		<bizsolo:when
			test='<%=request.getParameter("bizsite_reassignTask") !=null %>'>
			<bizsolo:initDS name="performer" param="bizsite_assigneeName"
				hexval="FALSE"></bizsolo:initDS>
			<bizsolo:executeAction
				epClassName="com.savvion.BizSolo.beans.PAKReassignWI"
				perfMethod="commit" mode="BizSite"
				dsi="completedAssignment,attempts,studentID,classID,submittedDate,Assignment,assignmentDueDate,assignmentID"
				dso="teacherComments,grade,accepted"></bizsolo:executeAction>
		</bizsolo:when>
		<bizsolo:when
			test='<%=request.getParameter("bizsite_saveTask") !=null %>'>
			<bizsolo:executeAction
				epClassName="com.savvion.BizSolo.beans.PAKUpdateDS"
				perfMethod="commit" mode="BizSite"
				dsi="teacherComments,grade,accepted"></bizsolo:executeAction>
		</bizsolo:when>
		<bizsolo:otherwise>
			<bizsolo:executeAction
				epClassName="com.savvion.BizSolo.beans.PAKSetDS" perfMethod="commit"
				mode="BizSite" dsi="teacherComments,grade,accepted" res=""></bizsolo:executeAction>
		</bizsolo:otherwise>
	</bizsolo:choose>
	<%
		/* Workaround, retAddr will disappear in the future */
	%>
	<%
		String retAddr = bean.getPropString("returnPage");
	%>
	<%
		if (retAddr != null) {
	%>
	<bizsolo:redirectURL page="<%= retAddr %>" />
	<%
		}
	%>
</bizsolo:if>
<bizsolo:if
	test='<%= ! _PageName.equals(request.getParameter("_PageName")) %>'>
	<bizsolo:initApp mode="BizSite" name="PerformAssignment"></bizsolo:initApp>
	<bizsolo:initDS name="assignmentID" type="STRING"></bizsolo:initDS>
	<bizsolo:initDS name="assignmentDueDate" type="DATETIME"></bizsolo:initDS>
	<bizsolo:initDS name="Assignment" type="DOCUMENT"></bizsolo:initDS>
	<bizsolo:initDS name="submittedDate" type="DATETIME"></bizsolo:initDS>
	<bizsolo:initDS name="classID" type="STRING"></bizsolo:initDS>
	<bizsolo:initDS name="studentID" type="STRING"></bizsolo:initDS>
	<bizsolo:initDS name="attempts" type="LONG"></bizsolo:initDS>
	<bizsolo:initDS name="accepted" type="BOOLEAN"></bizsolo:initDS>
	<bizsolo:initDS name="grade" type="DOUBLE"></bizsolo:initDS>
	<bizsolo:initDS name="teacherComments" type="STRING"></bizsolo:initDS>
	<bizsolo:initDS name="completedAssignment" type="DOCUMENT"></bizsolo:initDS>
	<bizsolo:executeAction epClassName="com.savvion.BizSolo.beans.PAKGetDS"
		perfMethod="commit" mode="BizSite"
		dso="completedAssignment,teacherComments,grade,accepted,attempts,studentID,classID,submittedDate,Assignment,assignmentDueDate,assignmentID"></bizsolo:executeAction>
</bizsolo:if>

<title>GradeAssignment</title>
<!-- Javascript -->
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/initControls.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/customValidation.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/prototype.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/effects.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/scriptaculous.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/pwr.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/engine.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/cal.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/util.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/utilities.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/fvalidate/fValidate.config.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/fvalidate/fValidate.core.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/fvalidate/fValidate.lang-enUS.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/fvalidate/fValidate.validators.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/fvalidate/pValidate.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/document.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/jscalendar/calendar.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/jscalendar/calendar-en.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/jscalendar/calendar-setup.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>dwr/interface/adapterDWR.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/utilities/utilities.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/container/container-min.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/connection/connection-min.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/resize/resize-beta-min.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/animation/animation-min.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/json/json-min.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/logger/logger-min.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/spry/checkboxvalidation/SpryValidationCheckbox.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/spry/confirmvalidation/SpryValidationConfirm.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/spry/passwordvalidation/SpryValidationPassword.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/spry/radiovalidation/SpryValidationRadio.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/spry/selectvalidation/SpryValidationSelect.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/spry/textareavalidation/SpryValidationTextarea.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/spry/textfieldvalidation/SpryValidationTextField.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/spry//SpryEffects.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/ext/adapter/ext/ext-base.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/ext/ext-all.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/ext/PagingRowNumberer.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/BmViewport.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/sbm/WaitDialog.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/sbm/LoggerDialog.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/sbm/ResizableDialog.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/sbm/FormWidget.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/sbm/FormPanel.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/sbm/FormWidgetHandler.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/sbm/TransactionAjaxObject.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/sbm/BusinessObjectHandler.js"></script>
<script language="JavaScript"
	src="<c:out value='${contextPath}'/>bpmportal/javascript/sbm/sbm.utils.js"></script>
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/fonts/fonts.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/resize/assets/skins/sam/resize.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/container/assets/skins/sam/container.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/yahoo/logger/assets/skins/sam/logger.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/spry/checkboxvalidation/SpryValidationCheckbox.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/spry/confirmvalidation/SpryValidationConfirm.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/spry/textareavalidation/SpryValidationTextarea.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/spry/passwordvalidation/SpryValidationPassword.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/spry/radiovalidation/SpryValidationRadio.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/spry/selectvalidation/SpryValidationSelect.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/spry/textfieldvalidation/SpryValidationTextField.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/ext/resources/css/ext-all.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/javascript/ext/resources/css/xtheme-default.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value='${contextPath}'/>bpmportal/css/theme01/bm-all.css">
<script language="JavaScript">
 Ext.BLANK_IMAGE_URL = '<c:out value='${contextPath}'/>bpmportal/javascript/ext/resources/images/default/s.gif';
	 
	  var isIFrame = <%=(PublicResources.INTERACTIVE_MODE
							.equalsIgnoreCase(bean
									.getPropString(PublicResources.MODE)) || PublicResources.SLAVE_MODE
							.equalsIgnoreCase(bean
									.getPropString(PublicResources.MODE))) ? true
							: false%>;
	  
<!--
    function AlertReassign()
    {
      if (document.form.elements['bizsite_assigneeName'].value == '' )
      {
        alert('Please provide assignee name!')
        document.form.elements['bizsite_assigneeName'].focus();
        return false;
      }
      else
      {
        return true;
      }
    }
    
    var uploadWnd;
    var param;
 
    function openDocAttWin( slotName,sesID, ptname, piname, docurl, docServer, readonly, ismultiline, appendwith, isStart )
    {
      param = 'bzsid=' + sesID;
      param += '&pt=' + ptname;
      param += '&pi=' + piname;
      param += '&ds=' + slotName;
      param += '&docurl=' + docurl;
      param += '&readonly=' + readonly;
      param += '&ismultiline=' + ismultiline;
      param += '&appendwith=' + appendwith;
      param += '&isPICreation=' + isStart;
      uploadWnd = openDocumentPresentation(docServer + '/BizSite.DocAttacher?' + param, isIFrame);
    }

    function setCheckBoxStyleForIE()
    {
      var isIE = (navigator.appName == "Microsoft Internet Explorer") ? 1 : 0;
      var w_Elements = document.getElementsByTagName("input");
      for ( i=0; i < w_Elements.length; ++i)
      {
          if(isIE && (w_Elements.item(i).getAttribute("type") == "checkbox" || w_Elements.item(i).getAttribute("type") == "radio"))
            w_Elements.item(i).className = "ChkBoxNone";
      }
    }
    
    function onSuccess() {
    }
    
    
   function editDecimal(element,pms,scale)
    {
    if(typeof element == 'string') element = document.getElementById(element);
	var id = element.getAttribute('id');
	if (element != null)
	{
	      var newurl = '<c:out value='${contextPath}'/>bpmportal/common/pop_decimal_dataslot.jsp?elementID=' + id + '&pms=' + pms + '&scale=' + scale + '&value=' + element.value;
	      
        MM_openBrWindow(newurl,'editdecimal','scrollbars=yes,resizable=yes,width=690,height=174');
	}
}
//-->
</script>

<bizsolo:link rel="stylesheet"></bizsolo:link>

<sbm:setLocale value="<%= bizManage.getLocale() %>"></sbm:setLocale>
<%
	try {
%><sbm:setBundle scope="page"
	basename="PerformAssignment/properties/PerformAssignment"></sbm:setBundle>
<%
	} catch (Exception e) {
	}
%>
</head>
<body class="apbody yui-skin-sam"
	onUnload="pwr.removePakBizSoloBeanFromCache('<%=session.getId()%>', onSuccess);"
	onLoad="setCheckBoxStyleForIE();hideControls();beforeInitControls();initControls();initTabs();sbm.utils.onDOMReady();">
<form method="post" name="form"
	onsubmit="return sbm.utils.onFormSubmit();">
<div id="northDiv"></div>
<%
	/* Workaround, activityName will disappear in the future */
%> <%
 	String activityName = bean.getPropString("workitemName");
 %>
<div id="resultDiv">
<div style='visibility: hidden; display: none' class='vBoxClass'
	name='errors' id='errors'></div>
<input name="_PageName" type="hidden" value="GradeAssignment"> <%
 	if (bean.getPropString("workitemName") != null) {
 %><input name="_WorkitemName" type="hidden"
	value="<%=URLHexCoder
						.encode(bean.getPropString("workitemName"))%>" /><input
	name="_WorkitemId" type="hidden"
	value="<%=bean.getPropString("workitemId")%>" /> <%
 	}
 %> <input name="bizsite_pagetype" type="hidden" value="activity">
<input name="_ProcessTemplateName" type="hidden"
	value='<%=bean.getPropString("ptName")%>'> <input
	name="_yahoo_flow_button" type="hidden" value=''> <!-- Content -->


<!-- Header -->
<table width="100%" cellspacing="0" cellpadding="0" border="0">
	<tr>
		<bizsolo:if test='<%=bean.getPropString(\"workitemName\") != null %>'>
			<td class="ApSegTblInBg">
			<table width="100%" cellpadding="4" align="center" cellspacing="0"
				border="0">
				<tr>
					<td class="ApSegTitle" align="center"><bizsolo:getDS
						name="workitemName"></bizsolo:getDS></td>
				</tr>
			</table>
			<table class="ApSegDataTbl" width="100%" cellspacing="1"
				cellpadding="4" border="0">
				<tr>
				</tr>
			</table>
			</td>
		</bizsolo:if>
	</tr>
</table>

<table align="left" cellpadding="0" cellspacing="0" class="ApSegDataTbl"
	id="table1" width="100%">
	<tbody>
		<tr>
			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="textField1"><sbm:message
				key="assignmentID"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top"><input class="ApInptTxt" type="text"
				id="textField1" name="assignmentID" size="20" maxlength="256"
				disabled value="<bizsolo:value name='assignmentID'/>"></td>
			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="assignmentDueDate"><sbm:message
				key="assignmentDueDate"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top">
			<div style="display: inline;" id="dateTime1"><bizsolo:getDS
				type="date" name="assignmentDueDate" wsName="GradeAssignment"
				writePerm="false" size="0"></bizsolo:getDS></div>
			</td>
		</tr>
		<tr>
			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="Assignment"><sbm:message
				key="Assignment"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top">
			<div style="display: inline;" id="assignedDocument"><bizsolo:getDS
				type="field" name="Assignment" multiline="false"
				wsName="GradeAssignment" appendWith="false" writePerm="false"></bizsolo:getDS></div>
			</td>

			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="completedAssignment"><sbm:message
				key="completedAssignment"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top">
			<div style="display: inline;" id="completedDocument"><bizsolo:getDS
				type="field" name="completedAssignment" multiline="false"
				wsName="GradeAssignment" appendWith="false" writePerm="false"></bizsolo:getDS></div>
			</td>
		</tr>
		<tr>
			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="submittedDate"><sbm:message
				key="submittedDate"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top">
			<div style="display: inline;" id="dateTime2"><bizsolo:getDS
				type="date" name="submittedDate" wsName="GradeAssignment"
				writePerm="false" size="0"></bizsolo:getDS></div>
			</td>
			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="textField3"><sbm:message
				key="classID"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top"><input class="ApInptTxt" type="text"
				id="textField3" name="classID" size="20" maxlength="256" disabled
				value="<bizsolo:value name='classID'/>"></td>
		</tr>
		<tr>
			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="textField2"><sbm:message
				key="studentID"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top"><input class="ApInptTxt" type="text"
				id="textField2" name="studentID" size="20" maxlength="256" disabled
				value="<bizsolo:value name='studentID'/>"></td>
			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="textField4"><sbm:message
				key="attempts"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top"><input class="ApInptTxt" type="text"
				id="textField4" name="attempts" size="30" maxlength="256" disabled
				value="<bizsolo:value name='attempts'/>" alt="number|0|bok">
			</td>
		</tr>
		<tr>
			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="checkBox1"><sbm:message
				key="accepted"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top"><input type="checkbox" value="true"
				class="ApInptChkBox" name="accepted" id="checkBox1"> <script>addValue("accepted", '<bizsolo:value name="accepted"></bizsolo:value>');</script>
			</td>

			<td class="ApSegGenLabel" width="25%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="textField5"><sbm:message
				key="grade"></sbm:message></Label> </font></td>
			<td class="ApSegDataVal" width="25%" rowspan="1" colspan="1"
				valign="top"><input class="ApInptTxt" type="text"
				id="textField5" name="grade" size="30" maxlength="256"
				value="<bizsolo:value name='grade'/>" alt="number|1|bok">
			<div style="display: none" id="textField5Error">
			<div><font color="red"><span class="error"
				id="textField5ErrorMsg"></span><a href="#"
				onclick="textField5ErrorMsgClose();return false;"><img
				border="0"
				src="<c:out value='${contextPath}'/>bpmportal/css/apptheme01/images/close.gif"></a></font></div>
			</div>
			</td>
		</tr>
	</tbody>
</table>

<br clear="all">
<hr />

<table align="left" cellpadding="0" cellspacing="0" class="ApSegDataTbl"
	Width="100%">
	<tbody>
		<tr>
			<td class="ApSegGenLabel" width="20%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <Label
				class="ApSegDataslotLabel" for="textArea2"><sbm:message
				key="teacherComments"></sbm:message></Label> </font>
			</td>
			<td class="ApSegGenLabel" width="80%" rowspan="1" colspan="1"
				valign="top"><font color="#000000"> <label
				class="ApSegDataslotLabel">Completed Assignment:</label></font>
			</td>
		</tr>
		<tr>
			<td class="ApSegGenLabel" width="20%" rowspan="1" colspan="1" valign="top">
				<textarea
				class="ApInptTxtArea" id="textArea2" style="color: red"
				name="teacherComments" cols="50" rows="25"><bizsolo:value name='teacherComments' /></textarea>
			<div style="display: none" id="textArea2_error">
			<div><font color="red"><span class="error"
				id="textArea2_errorMsg"></span><a href="#"
				onclick="textArea2_errorMsgClose();return false;"><img
				border="0"
				src="<c:out value='${contextPath}'/>bpmportal/css/apptheme01/images/close.gif"></a></font></div>
			</div>
			</td>
			<td class="ApSegGenLabel" width="80%" rowspan="1" colspan="1" valign="top">
			<EMBED
				SRC="<c:out value='${contextPath}'/>ebmsapps/PerformAssignment/jsp/showDocument.jsp?dsName=completedAssignment"
				TYPE="application/pdf" WIDTH="1000" HEIGHT="750">
			<NOEMBED> PDF should have displayed here!</NOEMBED>
			</EMBED></td>
		</tr>
	</tbody>
</table>
<br clear="all">
</div>
<!-- Footer -->

<div id="cmdDiv">
<table width="100%" cellpadding="0" align="center" cellspacing="0"
	border="0">
	<tr align="center">
		<td class="ApButtonDarkBg" width="63%">
		<table border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td class="ApBtnSpace"><input name="bizsite_completeTask"
					id="btn-complete" class="ApScrnButton"
					onMouseOver="this.className='ApScrnButtonHover';"
					onMouseOut="this.className='ApScrnButton';"
					onClick="clickedButton=this.name;this.onsubmit = new Function('return false');"
					value="<bizsolo:getLabel name='COMPLETE_LABEL' type='RESOURCE'/>"
					type="submit"></td>
				<td class="ApBtnSpace"><input name="bizsite_saveTask"
					id="btn-save" class="ApScrnButton"
					onMouseOver="this.className='ApScrnButtonHover';"
					onMouseOut="this.className='ApScrnButton';"
					onClick="clickedButton=this.name;this.onsubmit = new Function('return false');"
					value="<bizsolo:getLabel name='SAVE_LABEL' type='RESOURCE'/>"
					type="submit"></td>
				<td class="ApBtnSpace"><input type="button"
					name="bizsite_reset" id="btn-reset" class="ApScrnButton"
					onMouseOver="this.className='ApScrnButtonHover';"
					onMouseOut="this.className='ApScrnButton';"
					onClick="sbm.utils.reset()"
					value="<bizsolo:getLabel name='RESET_LABEL' type='RESOURCE'/>"></td>
				<td class="ApBtnSpace"><input type="button" name="Submit1323"
					id="btn-cancel" class="ApScrnButton"
					onMouseOver="this.className='ApScrnButtonHover';"
					onMouseOut="this.className='ApScrnButton';"
					onClick="sbm.utils.cancel()"
					value="<bizsolo:getLabel name='CANCEL_LABEL' type='RESOURCE'/>"></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>


<div id="resizablepanel" style="display: none">
<div class="hd">Alert Dialog</div>
<div class="bd"></div>
<div class="ft"></div>
</div>
<div id="southDiv"></div>
</form>
</body>

<script language="JavaScript">
<!--
function beforeInitControls() {
}
-->
</script>
<script language="JavaScript">
<!--
function userValidationJavascipt() {
  return true;
}
-->
</script>
<sbm:dataSources appName="PerformAssignment" appType="bizlogic">
</sbm:dataSources>
<script language="JavaScript">
<!---->
</script>
<!--Initialize extensible widgets.-->
<script language="JavaScript">
<!--
var allWidgets = [];
var businessObjects = [];
var formWidgetHandler;
sbm.utils.onDOMReady = function() {
YAHOO.util.Event.onDOMReady(function(){formWidgetHandler = new FormWidgetHandler(allWidgets);});
}
Ext.onReady(function(){

});
         var viewport = new Bm.util.BmViewport('');
sbm.utils.onFormSubmit = function() {
         if(allWidgets.length > 0 && !formWidgetHandler.validateWidgets()) return false;
        try{
             if(!userValidationJavascipt()) return false;
             if(!sbm.utils.beforeFormSubmit('box+label')) return false;
         }catch(e){}
         document.form.action='<%=response.encodeURL("GradeAssignment.jsp")%>';
         if(allWidgets.length > 0)formWidgetHandler.saveDataSlots();
         return true;
}
-->
</script>

</html>